#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<unordered_map>
#include<string>

using namespace std;

bool judge(char c)
{
    if (c == 'a' || c == 'i' || c == 'e' || c == 'o' || c == 'u')
        return true;
    return false;
}

int beautifulSubstrings(string s, int k) {
    int count = 0;
    int res = 0;
    for (int i = 0; i < s.size(); i++)
    {
        for (int j = i; j < s.size(); j++)
        {
            if (judge(s[j]))
                count++;
            int tot = j - i + 1;
            if (count * 2 == tot && count * count % k == 0)
                res++;
        }
        count = 0;
    }
    return res;
}

int main()
{
    string s = "abba";
    cout << beautifulSubstrings(s, 1);
    return 0;
}